const baseURL = 'http://localhost:3000';

//获取id
console.log(this.location.search.slice(4));
console.log(typeof this.location.search);
const id = this.location.search.slice(4);
// const id = this.id;
//发送异步请求
$.ajax({
  url: `${baseURL}/users/`,
  type: 'GET',
  success: function (res) {
    console.log(res);
  },
});
